const fs = require("fs");

class NodeEnvironmentPlugin {
    constructor(options) {
        this.options = options || {}
    }

    apply(compiler) {
        // compiler可以调用fs,得到文件读写能力
        compiler.inputFileSystem = fs
        compiler.outputFileSystem = fs
    }
}

module.exports = NodeEnvironmentPlugin